#include<stdio.h>
typedef struct
{
   char name[21];
   char id[21];
   int score[5];
   int total;
   double average;
} student;

int main()
{
    student b;
    student *a;
    a=&b;
    a->total=0;
    a->average=0.0;
    gets(a->name);
    gets(a->id);
    for(int i=0;i<5;i++)
    {
        scanf("%d",&(a->score[i]));
        a->total+=a->score[i];
    }
    for(int i=0;i<5;i++)
    for(int j=i;j<5;j++)
    {
        int temp;
        if(a->score[i]<a->score[j])
        {
            temp=a->score[i];
            a->score[i]=a->score[j];
            a->score[j]=temp;
        }
    }
    
    a->average=a->total*1.000/5;
    printf("Name:%s\n",a->name);
    printf("ID:%s\n",a->id);
    printf("Score:%d %d %d %d %d\n",a->score[0],a->score[1],a->score[2],a->score[3],a->score[4]);
    printf("average:%.2lf total:%d\n",a->average,a->total);
    return 0;

}